#ifndef _SCHEDULE_H_
#define _SCHEDULE_H_

#include "Hour.h"
#include "Worker.h"

class Schedule
{

public:
	Schedule();
	virtual ~Schedule();
	Worker *worker;

	Hour getEntranceHour();
	void setEntranceHour(Hour entrance);
	Hour getDepartureTime();
	void setDepartureTime(Hour departure);
	
	// I/O
    friend ostream & operator<< (ostream & os, const Schedule & schedule);
    friend istream & operator>> (istream & is, const Schedule & schedule);

private:
	Hour entranceTime;
	Hour departureTime;

};
#endif // _SCHEDULE_H_